<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%
	String ctxPath = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ ctxPath + "/";
	String SYSTEM_NAME = "EZMES";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<base href="<%=basePath%>">

<title>My JSP 'update_user.jsp' starting page</title>

<meta http-equiv="pragma" content="no-cache">
<meta http-equiv="cache-control" content="no-cache">
<meta http-equiv="expires" content="0">
<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
<meta http-equiv="description" content="This is my page">
<base href="<%=basePath%>">

</head>
<link href="<%=basePath%>css/bootstrap.min.css?v=3.4.0" rel="stylesheet">
<link href="<%=basePath%>css/font-awesome.min.css?v=4.3.0"
	rel="stylesheet">

<!-- Data Tables -->
<link href="<%=basePath%>css/animate.min.css" rel="stylesheet">
<link href="<%=basePath%>css/style.min.css?v=3.0.0" rel="stylesheet">
<body>
	<form action="permission/update_permission" method="post" id="formId">
		<input type="hidden" name="permission.p_id" value="${permission.p_id}">
		<div class="col-md-12">
			<div class="form-group" style="padding: 20px">
        <label class="col-sm-2 control-label">权限名称：</label>
        <div class="col-sm-10">
            <input type="text" value="${permission.p_name}" name="permission.p_name" class="form-control" required="" placeholder="请输入权限名称">
        </div>
    </div>
    <div class="form-group" style="padding: 20px">
        <label class="col-sm-2 control-label">权限url：</label>
        <div class="col-sm-10">
            <input type="text" name="permission.p_url" value="${permission.p_url}" class="form-control" placeholder="请输入权限url">
        </div>
    </div>
    <div class="form-group" style="padding: 20px">
        <label class="col-sm-2 control-label">父类名称：</label>
        <div class="col-sm-10">
             <select class="form-control" name="permission.parent_id">
		         <option value="">请选择</option>
		         <c:forEach items="${ps}" var="p">
            	 	<option value="${p.p_id}" <c:if test="${permission.parent_id == p.p_id }">selected='selected'</c:if> >${p.p_name}</option>
            	 </c:forEach>
		      </select>
        </div>
    </div>
		</div>
		<div class="col-md-12" style="text-align: center; margin-bottom: 10px">
			<button type="submit" class="btn btn-primary">
				<i class="fa fa-check"></i> 修改
			</button>
		</div>
	</form>
</body>
<script src="<%=basePath%>js/jquery-2.1.1.min.js"></script>
<script src="<%=basePath%>js/bootstrap.min.js?v=3.4.0"></script>
<script src="<%=basePath%>js/plugins/jeditable/jquery.jeditable.js"></script>
</html>
